package com.lifa.service.impl;

import com.lifa.dao.RuKuDao;
import com.lifa.entity.RuKutable;
import com.lifa.entity.Rukumxtable;
import com.lifa.service.RuKuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RuKuServiceImpl implements RuKuService {

    @Autowired
    private RuKuDao ruKuDao;

    @Override
    public int rukutianjia1(RuKutable ruKutabl) {
        return ruKuDao.rukutianjia(ruKutabl);
    }

    /**
     * 获取到单号
     * @param ruKutable
     * @return
     */
    @Override
    public int update(RuKutable ruKutable) {
        return ruKuDao.update(ruKutable);
    }

    /**
     * 根据单号修改信息
     * @param rukudanhao
     * @return
     */
    @Override
    public RuKutable queryId(String rukudanhao) {
        return ruKuDao.queryId(rukudanhao);
    }

}
